package com.eostoken.eos_wallet.net.response;

public class BaseResponse<T> {

    private int code; // 返回的code
    private T data; // 具体的数据结果
    private String msg; // message 可用来返回接口的说明
 
    public int getResult() {
        return code;
    }

    public void setResult(int result) {
        this.code = result;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return code == 1;
    }
}
